<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group" hidden>
        <label class="control-label col-xs-12 col-sm-2">{:__('Column_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-column_id" data-rule="required" data-source="mw_column/index" class="form-control selectpage" name="row[column_id]" type="text" value="{$_GET['column_id']}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-type" class="form-control selectpicker" name="row[type]">
                {foreach name="validateTypeList" item="vo"}
                <option value="{$key}" {in name="key" value="blur"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Trigger')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-trigger" class="form-control selectpicker" name="row[trigger]">
                {foreach name="triggerList" item="vo"}
                    <option value="{$key}" {in name="key" value="blur"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Condition')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-condition" class="form-control " rows="20" name="row[condition]" cols="50">{
	"value": 6,
	"type": "string"
}
当规则为remote时，模板如下：
{
	"url": "user_type/unique",
	"param": [{
		"key": "com_id",
		"from": "form"
	}, {
		"key": "user_id",
		"from": "static",
		"value": 2
	}, {
		"key": "id",
		"from": "query"
	}],
	"format": {
		"dataKey": "data",
		"msgKey": "msg"
	}
}</textarea>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
